/**
 * 
 */
package com.swim.natatoriumapply.entity;

import org.hibernate.validator.constraints.NotBlank;
import org.hibernate.validator.constraints.Length;

import com.jeesite.common.entity.DataEntity;
import com.jeesite.common.mybatis.annotation.Column;
import com.jeesite.common.mybatis.annotation.Table;
import com.jeesite.common.mybatis.mapper.query.QueryType;

/**
 * 游泳馆申请Entity
 * @author 刘军武
 * @version 2021-01-26
 */
@Table(name="t_natatorium_apply", alias="a", columns={
		@Column(name="id", attrName="id", label="唯一标识", isPK=true),
		@Column(name="name", attrName="name", label="游泳馆名称", queryType=QueryType.LIKE),
		@Column(name="contact_person", attrName="contactPerson", label="联系人"),
		@Column(name="contact_way", attrName="contactWay", label="联系方式"),
		@Column(name="venue_description", attrName="venueDescription", label="场馆描述"),
		@Column(name="city", attrName="city", label="城市"),
		@Column(name="area", attrName="area", label="区县"),
		@Column(name="address", attrName="address", label="场馆地址"),
		@Column(name="apply_state", attrName="applyState", label="申请状态  1表示待处理 2表示已通过 3表示已拒绝"),
		@Column(includeEntity=DataEntity.class),
	}, orderBy="a.update_date DESC"
)
public class NatatoriumApply extends DataEntity<NatatoriumApply> {

	private static final long serialVersionUID = 1L;
	private String name;		// 游泳馆名称
	private String contactPerson;		// 联系人
	private String contactWay;		// 联系方式
	private String venueDescription;		// 场馆描述
	private String city;		// 城市
	private String area;		// 区县
	private String address;		// 场馆地址
	private Long applyState;		// 申请状态 1表示待处理 2表示已通过 3表示已拒绝

	public NatatoriumApply() {
		this(null);
	}

	public NatatoriumApply(String id){
		super(id);
	}

	@NotBlank(message="游泳馆名称不能为空")
	@Length(min=0, max=80, message="游泳馆名称长度不能超过 80 个字符")
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	@NotBlank(message="联系人不能为空")
	@Length(min=0, max=10, message="联系人长度不能超过 10 个字符")
	public String getContactPerson() {
		return contactPerson;
	}

	public void setContactPerson(String contactPerson) {
		this.contactPerson = contactPerson;
	}

	@NotBlank(message="联系方式不能为空")
	@Length(min=0, max=30, message="联系方式长度不能超过 30 个字符")
	public String getContactWay() {
		return contactWay;
	}

	public void setContactWay(String contactWay) {
		this.contactWay = contactWay;
	}

	@NotBlank(message="场馆描述不能为空")
	@Length(min=0, max=500, message="场馆描述长度不能超过 500 个字符")
	public String getVenueDescription() {
		return venueDescription;
	}

	public void setVenueDescription(String venueDescription) {
		this.venueDescription = venueDescription;
	}

	@NotBlank(message="城市不能为空")
	@Length(min=0, max=20, message="城市长度不能超过 20 个字符")
	public String getCity() {
		return city;
	}

	public void setCity(String city) {
		this.city = city;
	}

	@NotBlank(message="区县不能为空")
	@Length(min=0, max=20, message="区县长度不能超过 20 个字符")
	public String getArea() {
		return area;
	}

	public void setArea(String area) {
		this.area = area;
	}

	@NotBlank(message="场馆地址不能为空")
	@Length(min=0, max=150, message="场馆地址长度不能超过 150 个字符")
	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public Long getApplyState() {
		return applyState;
	}

	public void setApplyState(Long applyState) {
		this.applyState = applyState;
	}

}